<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="com.asaga.tools.*, java.util.*, java.io.*, java.net.*"%>
<jsp:useBean id="userProfile" scope="session" class="com.asaga.tools.SystemClient_DBImpl" />
<!-- Author:  Jeremy Sanderlin 
     Date Created: 2006-11-02
     Last Modified: 2006-11-14
     Last Modified By: Jeremy Sanderlin
-->
<% 
    String fname = "";
    String lname = "";
    String addr1 = "";
    String addr2 = "";
    String city = "";
    String state = "";
    String zip = "";
    String email = "";
    String fontColor = "";
    String errorMessage = (String)session.getAttribute("errorMessage");
    session.setAttribute("errorMessage",null);
    SystemClient_DBImpl scdb = (SystemClient_DBImpl)session.getAttribute("clientInfo");
    session = null;
    //SystemClient_DBImpl userProfile = scdb;
    //SystemClient_DBImpl userProfile = (SystemClient_DBImpl)session.getAttribute("userProfile");
    if(scdb!=null){
        if(scdb.getFname()!=null){fname = scdb.getFname();}
        if(scdb.getLname()!=null){lname = scdb.getLname();}
        if(scdb.getAddr1()!=null){addr1 = scdb.getAddr1();}
        if(scdb.getAddr2()!=null){addr2 = scdb.getAddr2();}
        if(scdb.getCity()!=null){city = scdb.getCity();}
        if(scdb.getState()!=null){state = scdb.getState();}
        if(scdb.getZip()!=null){zip = scdb.getZip();}
        if(scdb.getEmail()!=null){email = scdb.getEmail();}
        if(scdb.getFontColor()!=null){fontColor = scdb.getFontColor();}
    }

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
<!-- Created 2007 by Yosemite, UGA MIT Program Students -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Educate America! ...because it's right</title>
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="css/default_color.css" title="white"/>
<!--<link rel="stylesheet" type="text/css" href="css/default_font.css" title="blackfont" /> -->
<!-- Alternate stylesheets for setting background colors -->
<link rel="alternate stylesheet" type="text/css" href="color_css/purple1.css" title="purple1"/>
<link rel="alternate stylesheet" type="text/css" href="color_css/purple2.css" title="purple2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/purple3.css" title="purple3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/bluepurp1.css" title="bluepurp1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/bluepurp2.css" title="bluepurp2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/bluepurp3.css" title="bluepurp3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/blue1.css" title="blue1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/blue2.css" title="blue2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/blue3.css" title="blue3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/bluegreen1.css" title="bluegreen1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/bluegreen2.css" title="bluegreen2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/bluegreen3.css" title="bluegreen3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/green1.css" title="green1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/green2.css" title="green2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/green3.css" title="green3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yellgreen1.css" title="yellgreen1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yellgreen2.css" title="yellgreen2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yellgreen3.css" title="yellgreen3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yellow1.css" title="yellow1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yellow2.css" title="yellow2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yellow3.css" title="yellow3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yelloran1.css" title="yelloran1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yelloran2.css" title="yelloran2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/yelloran3.css" title="yelloran3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/orange1.css" title="orange1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/orange2.css" title="orange2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/orange3.css" title="orange3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/redoran1.css" title="redoran1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/redoran2.css" title="redoran2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/redoran3.css" title="redoran3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/red1.css" title="red1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/red2.css" title="red2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/red3.css" title="red3" />
<link rel="alternate stylesheet" type="text/css" href="color_css/redpurp1.css" title="redpurp1" />
<link rel="alternate stylesheet" type="text/css" href="color_css/redpurp2.css" title="redpurp2" />
<link rel="alternate stylesheet" type="text/css" href="color_css/redpurp3.css" title="redpurp3" />
<!-- Styleswitcher JavaScript -->
<script type="text/javascript" src="javascript/styleswitcher.js"></script>
<!-- Form Handler JavaScript -->
<script type="text/javascript" src="javascript/formhandler.js"></script>
<!-- FontSwitcher JavaScript -->
<script type="text/javascript" src="javascript/fontSwitcher.js"></script>
<!-- Verify Event Javascriipt -->
<script type="text/javascript" src="javascript/verifyevent.js"></script>
<!-- Ajax Scripts -->
<script type="text/javascript" src="javascript/ajaxTest.js"></script>
<script type="text/javascript" src="javascript/DOMhelp.js"></script>
<script type="text/javascript" src="javascript/checkRequiredFieldsErrorMessages.js"></script>
<script type="text/javascript" src="javascript/formhandler.js"></script>
<!--[if lt IE 7.]>
<script  defer type="text/javascript" src="javascript/pngfix.js"></script>
<![endif]-->
<!--[if lt IE 7.]>
<script  defer type="text/javascript" src="javascript/pngfix_map.js"></script>
<![endif]-->
</head>
    <body>
        <div id="container">
            <%@ include file="topNav.jsp" %>
        <div class="content">
        <!-- Main content for page -->
        <p>
        Thank you for choosing to register for a customizable content portal.  
        Please take a moment to complete this application form.
            <table border="0" align="center">
                <tr><td>
                <% 
                if(errorMessage!=null){ %>
                <font color="red"><br/><%=errorMessage%><br/></font>
                <% errorMessage=null; %>
                <% }
                %>  
                </tr></td>
            </table>
        </p>  
        <hr />

        <!-- Registration Form -->
        <!--div class="registration"-->
            <form action="AutismSiteMasterController" method="post" onsubmit="return checkRequiredFields();" >
                <input type="hidden" name="action" value="register" /> 
                        <fieldset class="center" title="Name">
                        <legend>Name</legend>
                        <input type="text" id="first_name" name="first_name" value=<%=fname%> ><label>First Name</label>
                        <span class="error">&nbsp;</span>
                        <br />                        
                        <input type="text" id="last_name" name="last_name" value=<%=lname%> ><label>Last Name</label>
                        <span class="error">&nbsp;</span>
                        </fieldset>
                        <fieldset class="center" title="Your Address (Optional)">
                        <legend>Your Address (Optional)</legend>
                        <input type="text" id="address_1" name="address_1" value=<%=addr1%> ><label>Street Address</label>
                        <br />
                        <input type="text" id="address_2" name="address_2" value=<%=addr2%> ><label>Apt, Suite, Box</label>
                        <br />     
                        <input type="text" id="city" name="city" value=<%=city%> ><label>City</label>
                        <br />  
                        <input type="text" id="state" name="state" value=<%=state%> ><label>State</label>
                        <br />
                        <input type="text" id="zipcode" name="zipcode" value=<%=zip%> ><label>Zipcode</label>
                        </fieldset>
                        <br />
                    <hr />
                        <fieldset class="center" title="Your Email Address (Required)">
                        <legend>Your Email Address (Required)</legend>  
                        <label>Email Address:</label>
                        <br />
                        <input type="text" id="email_1" name="email_1"  value=<%=email%> >
                        <span class="error">&nbsp;</span>
                        <br  />
                        <label>Re-Type Email Address:</label>
                        <br />
                        <input type="text" id="email_2" name="email_2"  >
                        <span class="error">&nbsp;</span>
                        </fieldset>
                        <br />
                    <hr />
                        <fieldset class="center" title="Please Create A Password (Required)">
                        <legend>Please create a password (Required)</legend>
                        <label>Password:</label><br />
                        <input type="password" id="pass01" name="pass01" >
                        <span class="error">&nbsp;</span>
                        <br />
                        <label>Re-type Password:</label>
                        <br />
                        <input type="password" id="pass02" name="pass02" >
                        <span class="error">&nbsp;</span>
                        </fieldset>
                        <br />
                    <hr />
                     
                </table>
            
                        <fieldset class="center" title="Use the Wheel to Choose the background color for the page">
                            <legend>Use the Wheel to Choose the background color for the page</legend>
                            <script type="text/javascript">
                                window.onload=function(){
                                var formref=document.getElementById("switchform")
                                //indicateSelected(formref.choice)
                                //indicateSelected(formref.switchcontrol)
                                }
                            </script>
                            
                            <a href="#" onclick="setActiveStyleSheet('rv1'); return false;">
                            <img class="imagemap" src="images/tricolorwheel_imap_big.png" width="263" height="263" border="0" usemap="#tricolorwheel_imap_big_Map" /></a>
                            <map name="tricolorwheel_imap_big_Map">
                            <area shape="poly" alt="Default Pattern, White" coords="127,119, 136,124, 136,133, 130,138, 121,133, 121,124" href="#" onclick="setActiveStyleSheet('white'); return false;">
                            <area shape="poly" alt="Light Red Purple" coords="97,89, 113,81, 124,120" href="#" onclick="setActiveStyleSheet('redpurp3'); return false;">
                            <area shape="poly" alt="Light Purple" coords="81,112, 91,95, 121,124" href="#" onclick="setActiveStyleSheet('purple3'); return false;">
                            <area shape="poly" alt="Light Blue Purple" coords="77,139, 77,119, 117,129" href="#" onclick="setActiveStyleSheet('bluepurp3'); return false;">
                            <area shape="poly" alt="Light Blue" coords="91,162, 81,147, 121,134" href="#" onclick="setActiveStyleSheet('blue3'); return false;">
                            <area shape="poly" alt="Light Blue Green" coords="124,141, 113,177, 95,168" href="#" onclick="setActiveStyleSheet('bluegreen3'); return false;">
                            <area shape="poly" alt="Light Green" coords="138,179, 118,181, 127,141" href="#" onclick="setActiveStyleSheet('green3'); return false;">
                            <area shape="poly" alt="Light Yellow Green" coords="157,168,139,177,133,141,162,168" href="#" onclick="setActiveStyleSheet('yellgreen3'); return false;">
                            <area shape="poly" alt="Light Yellow" coords="174,146, 163,163, 140,134" href="#" onclick="setActiveStyleSheet('yellow3'); return false;">
                            <area shape="poly" alt="Light Yellow Orange" coords="174,119, 174,139, 140,129" href="#" onclick="setActiveStyleSheet('yelloran3'); return false;">
                            <area shape="poly" alt="Light Orange" coords="165,95, 174,112, 138,121" href="#" onclick="setActiveStyleSheet('orange3'); return false;">
                            <area shape="poly" alt="Light Red Orange" coords="145,81, 165,90, 134,118" href="#" onclick="setActiveStyleSheet('redoran3'); return false;">
                            <area shape="poly" alt="Pink" coords="118,78, 139,78, 128,118" href="#" onclick="setActiveStyleSheet('red3'); return false;">
                            <area shape="poly" alt="Mid Red Purple" coords="69,65, 102,44, 113,78, 91,87" href="#" onclick="setActiveStyleSheet('redpurp2'); return false;">
                            <area shape="poly" alt="Mid Purple" coords="77,111, 44,102, 65,68, 89,90" href="#" onclick="setActiveStyleSheet('purple2'); return false;">
                            <area shape="poly" alt="Mid Blue Purple" coords="73,140, 44,148, 41,108, 73,118" href="#" onclick="setActiveStyleSheet('bluepurp2'); return false;">
                            <area shape="poly" alt="Mid Blue" coords="87,168, 62,190, 44,156, 75,147" href="#" onclick="setActiveStyleSheet('blue2'); return false;">
                            <area shape="poly" alt="Mid Blue Green" coords="113,185, 107,213, 69,198, 91,171" href="#" onclick="setActiveStyleSheet('bluegreen2'); return false;">
                            <area shape="poly" alt="Mid Green" coords="139,185, 148,215, 109,215, 117,185" href="#" onclick="setActiveStyleSheet('green2'); return false;">
                            <area shape="poly" alt="Mid Yellow Green" coords="185,193, 154,213, 145,181, 167,171" href="#" onclick="setActiveStyleSheet('yellgreen2'); return false;">
                            <area shape="poly" alt="Mid Yellow" coords="214,156, 192,190, 170,168, 184,147, 210,156" href="#" onclick="setActiveStyleSheet('yellow2'); return false;">
                            <area shape="poly" alt="Mid Yellow Orange" coords="214,109, 214,148, 185,140, 185,128, 185,118" href="#" onclick="setActiveStyleSheet('yelloran2'); return false;">
                            <area shape="poly" alt="Mid Orange" coords="192,68, 214,102, 184,109, 176,98, 170,89" href="#" onclick="setActiveStyleSheet('orange2'); return false;">
                            <area shape="poly" alt="Mid Red Orange" coords="155,44, 189,65, 167,87, 158,78, 145,73" href="#" onclick="setActiveStyleSheet('redoran2'); return false;">
                            <area shape="poly" alt="Mid Red" coords="109,43, 148,43, 140,72, 130,72, 118,72" href="#" onclick="setActiveStyleSheet('red2'); return false;">
                            <area shape="poly" alt="Dark Red Purple" coords="45,39, 67,22, 91,11, 102,39, 81,48, 65,61" href="#" onclick="setActiveStyleSheet('redpurp1'); return false;">
                            <area shape="poly" alt="Dark Purple" coords="39,100, 11,94, 23,67, 39,44, 61,65, 50,81" href="#" onclick="setActiveStyleSheet('purple1'); return false;">
                            <area shape="poly" alt="Dark Blue Purple" coords="36,148, 11,156, 7,124, 11,100, 36,108, 34,129" href="#" onclick="setActiveStyleSheet('bluepurp1'); return false;">
                            <area shape="poly" alt="Dark Blue" coords="58,193, 41,214, 23,190, 11,163, 36,156, 44,171" href="#" onclick="setActiveStyleSheet('blue1'); return false;">
                            <area shape="poly" alt="Dark Blue Green" coords="101,221, 95,248, 65,237, 44,219, 65,198, 81,213" href="#" onclick="setActiveStyleSheet('bluegreen1'); return false;">
                            <area shape="poly" alt="Dark Green" coords="149,223, 158,248, 130,253, 102,248, 107,223, 127,223" href="#" onclick="setActiveStyleSheet('green1'); return false;">
                            <area shape="poly" alt="Dark Yellow Green" coords="214,221, 190,237, 163,248, 156,219, 176,213, 192,198" href="#" onclick="setActiveStyleSheet('yellgreen1'); return false;">
                            <area shape="poly" alt="Dark Yellow" coords="247,164,237,191,218,215,198,194,210,178,221,157" href="#" onclick="setActiveStyleSheet('yellow1'); return false;">
                            <area shape="poly" alt="Dark Yellow Orange" coords="248,100, 253,129, 248,159, 222,149, 223,129, 223,108" href="#" onclick="setActiveStyleSheet('yelloran1'); return false;">
                            <area shape="poly" alt="Dark Orange" coords="218,44, 237,67, 247,94, 222,100, 214,87, 198,65" href="#" onclick="setActiveStyleSheet('orange1'); return false;">
                            <area shape="poly" alt="Dark Red Orange" coords="163,11, 190,22, 214,39, 192,61, 180,48, 156,38" href="#" onclick="setActiveStyleSheet('redoran1'); return false;">
                            <area shape="poly" alt="Red" coords="100,11, 129,6, 157,11, 149,36, 129,32, 109,36" href="#" onclick="setActiveStyleSheet('red1'); return false;">
                        </map>
                        <!-- End ImageReady Slices -->
                        <br /><br />
                            <legend>Use these buttons to choose the text color</legend>
                            <p class="fontColor">
                            <input type="radio" name="fontColor" value="#000000" checked="checked" /><span style="color:#000000">Black</span>
                            <input type="radio" name="fontColor" value="#ffffff" /><span style="color:#ffffff">White</span>
                            <input type="radio" name="fontColor" value="#808080" /><span style="color:#808080">Gray</span>
                            <input type="radio" name="fontColor" value="#c0c0c0" /><span style="color:#c0c0c0">Silver </span>
                            <input type="radio" name="fontColor" value="#800000" /><span style="color:#800000">Maroon</span>
                            <input type="radio" name="fontColor" value="#ff0000" /><span style="color:#ff0000">Red</span>
                            <input type="radio" name="fontColor" value="#ffa500" /><span style="color:#ffa500">Orange</span>
                            <input type="radio" name="fontColor" value="#ffff00" /><span style="color:#ffff00">Yellow</span>
                            <input type="radio" name="fontColor" value="#00ff00" /><span style="color:#00ff00">Lime</span>
                            <input type="radio" name="fontColor" value="#008000" /><span style="color:#008000">Green</span>
                            <input type="radio" name="fontColor" value="#808000" /><span style="color:#808000">Olive</span>
                            <input type="radio" name="fontColor" value="#008080" /><span style="color:#008080">Teal</span>
                            <input type="radio" name="fontColor" value="#00ffff" /><span style="color:#00ffff">Aqua</span>
                            <input type="radio" name="fontColor" value="#0000ff" /><span style="color:#0000ff">Blue</span>                        
                            <input type="radio" name="fontColor" value="#000080" /><span style="color:#000080">Navy</span>
                            <input type="radio" name="fontColor" value="#800080" /><span style="color:#800080">Purple</span>
                            <!--<input type="radio" name="fontColor" value="#ff00ff" /><span style="color:#ff00ff">Fuchsia</span> -->
                        </p>
                    </fieldset>
                    <span class="centerSubmit">
                        <input type="submit" value="Submit" >
                        <input type="reset" value="Reset">  
                    </span>
                </form>                   
        <!--/div-->
    </div>
    <%@ include file="footer.jsp" %>
</div>
</body>
</html>

